<template>
  <div class="app-container2 jkpg">
    <div class="btn_chose">
      <div class="btn_left">
        <p class="chose">自动模式</p>
        <p>手动模式</p>
      </div>
      <div class="btn_right">
        <el-button class="js_common_btn">评估模型配置</el-button>
        <el-button class="js_common_btn">开始健康评估</el-button>
        <el-button class="js_common_btn">停止健康评估</el-button>
      </div>
    </div>
    <div class="table_wrap">
      <div class="table">
        <div class="title">模块设备健康评估</div>
        <div class="table_info">
          <el-table
            class="jk_common_table004"
            :data="tableData1"
            border
            height="style"
            style="width: 100%; height: 100%"
          >
            <el-table-column prop="id" label="序号" width="180">
            </el-table-column>
            <el-table-column prop="name" label="设备名称" width="180">
            </el-table-column>
            <el-table-column prop="modelName" label="评估模型名称">
            </el-table-column>
            <el-table-column prop="num" label="评估因子数"> </el-table-column>
            <el-table-column prop="time" label="评估时间"> </el-table-column>
            <el-table-column prop="result" label="健康度评估结果">
            </el-table-column>
            <el-table-column prop="sort" label="健康度排序"> </el-table-column>
            <el-table-column prop="operate" label="操作"> </el-table-column>
          </el-table>
        </div>
      </div>
      <div class="table">
        <div class="title">子系统通过健康评估</div>
        <div class="table_info">
          <el-table
            class="jk_common_table004"
            :data="tableData2"
            border
            height="style"
            style="width: 100%; height: 100%"
          >
            <el-table-column prop="id" label="序号" width="180">
            </el-table-column>
            <el-table-column prop="name" label="设备名称" width="180">
            </el-table-column>
            <el-table-column prop="modelName" label="评估模型名称">
            </el-table-column>
            <el-table-column prop="num" label="评估因子数"> </el-table-column>
            <el-table-column prop="time" label="评估时间"> </el-table-column>
            <el-table-column prop="result" label="健康度评估结果">
            </el-table-column>
            <el-table-column prop="sort" label="健康度排序"> </el-table-column>
            <el-table-column prop="operate" label="操作"> </el-table-column>
          </el-table>
        </div>
      </div>
      <div class="table">
        <div class="title">DCS整体评估</div>
        <div class="table_info">
          <el-table
            class="jk_common_table004"
            :data="tableData3"
            border
            height="style"
            style="width: 100%; height: 100%"
          >
            <el-table-column prop="modelName" label="评估模型名称">
            </el-table-column>
            <el-table-column prop="num" label="评估因子数"> </el-table-column>
            <el-table-column prop="time" label="评估时间"> </el-table-column>
            <el-table-column prop="result" label="健康度评估结果">
            </el-table-column>
            <el-table-column prop="sort" label="备注"> </el-table-column>
            <el-table-column prop="operate" label="操作"> </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tableData1: [
        {
          id: "0000001",
          name: "设备名称1",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
        {
          id: "0000001",
          name: "设备名称2",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
        {
          id: "0000001",
          name: "设备名称3",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
      ],
      tableData2: [
        {
          id: "0000001",
          name: "设备名称1",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
        {
          id: "0000001",
          name: "设备名称2",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
        {
          id: "0000001",
          name: "设备名称3",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
      ],
      tableData3: [
        {
          id: "0000001",
          name: "设备名称1",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
        {
          id: "0000001",
          name: "设备名称2",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
        {
          id: "0000001",
          name: "设备名称3",
          modelName: "模型名称",
          num: "10",
          time: "2022.2.22",
          result: "参数类型一",
          sort: "1",
          operate: "备注",
        },
      ],
    };
  },
};
</script>
<style lang="scss">
.jkpg {
  display: flex;
  flex-direction: column;

  .btn_chose {
    flex: 0 0 auto;
    background: linear-gradient(to right, #163a6d, #1a5a83, #163a6d);
    display: flex;
    justify-content: space-between;
    align-items: center;

    .btn_left {
      display: flex;
      justify-content: space-around;
      align-items: center;
      margin-left: 50px;

      p {
        color: #fff;
        padding: 8px 30px;
        border: 1px solid #5e7597;
        border-radius: 2px;
      }

      p.chose {
        border: 1px solid #b5cad9;
      }
    }

    .btn_right {
      margin-right: 50px;
    }
  }
  .table_wrap {
    margin-top: 20px;
    flex: 1 1 auto;
    background: linear-gradient(to bottom, #0f3368, #153468);
    display: flex;
    flex-direction: column;
    .table {
      flex: 1 1 auto;
      height: 0;
      display: flex;
      flex-direction: column;
      &:first-child {
        .title {
          margin-top: 0;
        }
      }
      .table_info {
        flex: 1 1 auto;
        height: 0;
        background-color: #0f2449;
      }
      .title {
        color: #fff;
        background: linear-gradient(to bottom, #0d2850, #134183);
        text-align: left;
        padding: 25px 10px 15px 10px;
        flex: 0 0 auto;
        font-size: 18px;
      }
    }
  }
}
</style>
